package main

import (
	command "../../command"
	HTTP "../../library/http"
	Key "../../library/key"
)

// Command 远程命令
func Command(H *HTTP.HTTP, UserKey *Key.Key) {
	key := &Key.Key{}
	key.Init()
	// 创建路由
	(&command.HTTPCommand{
		Path:          "/Command",
		Handle:        H,
		CrossDomain:   true, // 跨域设置
		Key:           UserKey,
		UsingKey:      true,
		ManagementKey: key,
	}).NewCommand()
}
